package com.untrance.shop.model;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.google.appengine.api.datastore.Key;

/**
 * @author eugene zadyra
 */
@Entity
public class Comment extends MainEntity{
	private String message;
	@Basic
    private Key userKey;
	@Basic
	private Key productKey;
	@Temporal(TemporalType.TIMESTAMP)
	private Date timeAdded;
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Date getTimeAdded() {
		return timeAdded;
	}
	public void setTimeAdded(Date timeAdded) {
		this.timeAdded = timeAdded;
	}
	public void setUserKey(Key userKey) {
		this.userKey = userKey;
	}
	public Key getUserKey() {
		return userKey;
	}
	public void setProductKey(Key productKey) {
		this.productKey = productKey;
	}
	public Key getProductKey() {
		return productKey;
	}
}
